package com.jk.bgmainconsumer.service;

import com.jk.bgmainconsumer.entity.*;
import com.jk.damaicommon.wlentity.SessionSiteEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashMap;
import java.util.List;

@Component
@FeignClient("BGGOODSPROVIDER")
public interface GoodsConsummerService {

    @RequestMapping(value = "goods/selectAllGoods",method = RequestMethod.POST)
    HashMap<String,Object> selectAllGoods(@RequestBody GoodsEntity goods);

    @RequestMapping("goods/downGoods")
    void downGoods(@RequestParam Integer goodsId);
    @RequestMapping("goods/upGoods")
    void upGoods(@RequestParam Integer goodsId);

    @RequestMapping("goods/selectOneGoods")
    GoodsEntity selectOneGoods( @RequestParam Integer goodsId);
    //王乐查看详情
    @RequestMapping("goods/getGoodsById")
    GoodsDetailEntity getGoodsById(@RequestParam Integer goodsId);
    //王乐城市动态下拉
    @RequestMapping("goods/getCitySelect")
    List<CityEntity> getCitySelect();
    //类型动态下拉
    @RequestMapping("goods/getTypeSelect")
    List<GoodsTypeEntity> getTypeSelect();
    //系列活动动态下拉
    @RequestMapping("goods/getActiveSelect")
    List<GoodsActiveEntity> getActiveSelect();
    //新增商品
    @RequestMapping(value = "goods/addGoods",method = RequestMethod.POST)
    void addGoods(@RequestBody GoodsDetailEntity goods);
    //获取配送方式
    @RequestMapping("goods/getDistr")
    String getDistr();
    // huishou zhan  查询
    @RequestMapping(value = "goods/recycleSelectMap",method = RequestMethod.POST)
    HashMap<String, Object> recycleSelectMap(@RequestBody GoodsEntity goods);
    //彻地删除
    @RequestMapping("goods/deleteThisGoods")
    void deleteThisGoods(@RequestParam Integer goodsId);

    //新增系列活动
    @RequestMapping(value = "goods/addActive",method = RequestMethod.POST)
    void addActive(@RequestBody ActiveEntity activeEntity);
    //座位管理场次列表
    @RequestMapping(value = "goods/getSessionList",method = RequestMethod.POST)
    List<SessionSiteEntity> getSessionList(@RequestBody SessionSiteEntity sessionSite);
    //档次动态下拉
    @RequestMapping("goods/getLeaveSelect")
    List<GoodsLeaveEntity> getLeaveSelect(@RequestParam Integer id);
    //提交座位表
    @RequestMapping(value = "goods/saveSite",method = RequestMethod.POST)
    void saveSite(@RequestBody SessionSiteEntity site);
    //获取座位信息
    @RequestMapping("goods/getSiteInfo")
    String getSiteInfo(@RequestParam Integer id);
}
